<!-- 区域营销基金 -->
<?php
	$areaFieldList = array(
    'fixedMoney'=>'双月额度',
    'preCarryMoney' => '上双月结余金额',
    'canUseMoney' => '可用额度',
    'budgetApplyOnline' => '广宣传播预算申请费用',
    'budgetApplyOffline'=>'营销活动预算申请费用',
    'budgetApplyTotal' => '预算申请总费用',
    'budgetAuditOnline'=>'广宣传播预算审核费用',
    'budgetAuditOffline'=>'营销活动预算审核费用',
    'budgetAuditTotal'=>'预算审核总费用',
    'settleApplyOnline'=>'广宣传播结算申请费用',
    'settleApplyOffline' => '营销活动结算申请费用',
    'settleApplyTotal' => '结算申请总费用',
    'settleAuditOnline'=>'广宣传播结算审核费用',
    'settleAuditOffline'=>'营销活动结算审核费用',
    'settleAuditTotal'=>'结算审核总费用',
    'canSettleMoney' => '可结算金额',
    'carryMoneyTotal' => '结余金额',
  );
?>
<table class="table table-bordered table-condensed mb27">
    <thead class="text-center">
      <tr>
        <th class="bg-primary text-center" width="12.5%">基金类型</th>
        <th class="bg-primary text-center" width="15%">费用流程</th>
        <?php foreach ($timeUnitList as $key => $value) { ?>
        <th class="bg-primary text-center" width="12%"><?php echo $value; ?></th>
        <?php } ?>
      </tr>
    </thead>
    <tbody>
        <?php
        $i = 0;
        foreach ($areaFieldList as $filedKey => $filedName) {
        ?>
      <tr>
      <?php if($i==0){?><td class="text-center" rowspan="<?=count($areaFieldList)?>"><h4>区域营销基金</h4></td><?php }?>
        <td class="text-center"><?php echo $filedName;?></td>

        <?php foreach ($timeUnitList as $timeK => $timeV) { ?>
        <td class="text-center"><?php
        if (isset($areaProcList[$timeK][$filedKey])) {
          //未评分显示文字
          if ($filedKey == 'score') {
            if ((float)$areaProcList[$timeK][$filedKey] == 0) {
              echo '未评分';
            }else{
              echo $areaProcList[$timeK][$filedKey];  
            }
          }else{
            echo $areaProcList[$timeK][$filedKey];
          }
        }
        ?></td>
        <?php
        $i ++;
        } ?>
      </tr>
      <?php }?>
    </tbody>
  </table>